package com.gouying.design.patterns.proxy.cglib;

import org.springframework.cglib.proxy.Proxy;

public class CglibProxy {


    public static void main(String[] args) {
        CglibClass cglibClass = new CglibClass();
        CglibClass proxy = CglibInvocatonHandler.createProxy(cglibClass);
        System.out.println(proxy.getClass().getSimpleName());
        proxy.sayHello();
    }
}
